#include <iostream>
#include <string>

using namespace std;

int main(void)
{
	// 空串
	string s;
	int i;

	s = "hello";

	for (i = 0; i < s.size(); i++)
		// cout << s[i] << " ";
		cout << s.at(i) << " ";
	cout << endl;

	cout << s << endl;

	cout << s.size() << endl;
	cout << s.length() << endl;
	cout << s.max_size() << endl;

	return 0;
}

